// import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import toast from "./components/common/toast";
import VueLazyload from 'vue-lazyload'
import axios from 'axios'
import api from './network/api'
import  "amfe-flexible";  

// import iView from 'iview'
import 'iview/dist/styles/iview.css'

import { plugin } from 'echarts-for-vue';
import * as echarts from 'echarts';

Vue.use(plugin, { echarts });  


// Vue.use(iView)
Vue.prototype.$axios = axios

Vue.prototype.$api = api;

Vue.config.productionTip = false

Vue.prototype.$bus = new Vue()

Vue.use(toast)

Vue.use(VueLazyload, {
  loading: require('/public/img/common/placeholder.png'),//加载中图片，一定要有，不然会一直重复加载占位图
  // error: require('/img/common/error.png')  //加载失败图片
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
